package com.eastmelon.tcp;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class TcpClient1 {
	public static void main(String[] args) throws Exception, IOException {
		Socket s=new Socket("127.0.0.1",10002);
		OutputStream out=s.getOutputStream();
		out.write("hello".getBytes());
		s.close();
	}
}
